using System;
using System.Windows.Forms;
using GoldStone.HLSplit;
using GoldStone.ICTSplit;
using GoldStone.Split;

namespace GoldStone.Splitter.Demo {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e) {
            Words.Text = SplitUtil.Split(new HLSplitter("..\\..\\..\\Lib", "..\\..\\..\\Lib\\userdict.txt"), OriginalText.Text);
        }

        private void ICTCLASSplit_Click(object sender, EventArgs e) {
            ClasInit initParams = new ClasInit();
            initParams.DictionaryFolder = "..\\..\\..\\Lib\\Data";
            Words.Text = SplitUtil.Split(new ICTSplitter(initParams), OriginalText.Text);
        }
    }
}